package com.fjsh.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;

/**
 * 用户表
 */
@Data
@Accessors(chain = true)
public class TbUser {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @NotBlank(message = "用户名不能为空")
    private String username;

    @NotBlank(message = "密码，加密存储不能为空")
    private String password;

    private String phone;

    private String email;

    private Date created;

    private Date updated;

}
